package org.javaboy.demo;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Lyh
 * @date 2024/2/6 1:19
 * @desciption:
 */
public class Demo01 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(JavaConfig.class);
        ShowCmd showCmd = ctx.getBean(ShowCmd.class);
        System.out.println("showCmd.cmd() = " + showCmd.cmd());
    }
}
